import 'package:json2dart_safe/json2dart.dart';

class FansClubModel {
  int? bloggerId;
  String? bloggerLogo;
  String? bloggerName;

  FansClubModel({
    this.bloggerId,
    this.bloggerLogo,
    this.bloggerName,
  });

  Map<String, dynamic> toJson() {
    return Map<String, dynamic>()
      ..put('bloggerId', this.bloggerId)
      ..put('bloggerLogo', this.bloggerLogo)
      ..put('bloggerName', this.bloggerName);
  }

  FansClubModel.fromJson(Map<String, dynamic> json) {
    this.bloggerId = json.asInt('bloggerId');
    this.bloggerLogo = json.asString('bloggerLogo');
    this.bloggerName = json.asString('bloggerName');
  }

  static FansClubModel toBean(Map<String, dynamic> json) =>
      FansClubModel.fromJson(json);
}
